﻿using Messenger.ViewModels;
using Messenger.WinDialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Messenger.Views
{
    /// <summary>
    /// StudentView.xaml 的交互逻辑
    /// </summary>
    public partial class StudentView : UserControl,IDialogView
    {
        
        public StudentView()
        {
            InitializeComponent();
            this.DataContext = new StudentViewModel();
        }

        public event IDialogView.HandleResult? HandleResultEvent;

        public void Dispose()
        {
            return;
        }

        public object? GetResult()
        {
            throw new NotImplementedException();
        }

        public void HadleResult(MessageBoxResult result)
        {
            HandleResultEvent?.Invoke(result);
        }
    }
}
